package com.demo.celue;

public class CashFactory {

	public CashSuper createCashSuper(int type,double moneyCondition,double moneyReturn){
		switch (type) {
		case 1:
			return new CashNormal();
		case 2:
			return new CashRebate(moneyCondition);
		case 3:
			return new CashReturn(moneyCondition,moneyReturn);
		default:
			break;
		}
		return null;
	}
}
